package com.wasion.pwportable.protocol.analyzer.indicator;

import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

/**
 * 
* @ClassName: Battery_RD_Analyzer 
* @Description: 32. 指示器实时电池容量
* @author 高意 
* @date 2014-9-10 下午4:45:13 
*
 */
public class Battery_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {
		String data = ackBS.substring(DATABITSTART, DATABITSTART + 4);
		String bat16 = data.substring(2, 4) + data.substring(0, 2);
		result.setBattery(Integer.parseInt(bat16, 16));
	}
}
